<%@page import="com.sun.xml.internal.bind.v2.runtime.Location"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang=ko>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>session2_result.jsp</title>
</head>
<body>
	<%
		String d = request.getParameter("data2");
		String flag = request.getParameter("flag");	
	
		if(d!=null && !d.equals(""))
		{
			session.setAttribute("data2", d);
		}
		if(flag!=null && flag.equals("invali"))
		{
			session.invalidate();
		}
		//현재페이지를 지정된 페이지로 변경
	%>
	
	<Script>
		url = 'main.jsp?inc=./jsp/session2.jsp';
		location.href = url;
	</Script>
</body>
</html>